import Vue from "vue";
import VueRouter from "vue-router";
import ProcessDesignPage from "@/views/admin/approver.vue";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        redirect: "/approver",
    },
    {
        path: "/approver",
        name: "approver",
        component: ProcessDesignPage,
        meta: {
            keepAlive: true,
        },
    },
    {
        path: "/preview",
        name: "preview",
        component: () => import("@/views/custom/preview.vue"),
        meta: {
            keepAlive: false,
        },
    },
    {
        path: "/jsxPreview",
        name: "jsxPreview",
        component: () => import("@/views/custom/jsxPreview.vue"),
        meta: {
            keepAlive: false,
        },
    },
    {
        path: "/test",
        name: "test",
        component: () => import("@/views/custom/test.vue"),
    },
];

const router = new VueRouter({
    routes,
});

export default router;
